﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using WaferSelectV3.ViewModels.DialogViewModels;

namespace WaferSelectV3.Dialogs
{
    /// <summary>
    /// InputNextCrystalDialog.xaml 的交互逻辑
    /// </summary>
    public partial class InputNextCrystalDialog : UserControl
    {
        public InputNextCrystalDialog()
        {
            InitializeComponent();
        }
        private async void FocusInput_GetFocus(object sender, RoutedEventArgs e)
        {
            // 等待下一个UI更新周期,以确保输入框已经获取焦点
            await Task.Delay(2);
            focusInput.CaretIndex = focusInput.Text.Length;
        }


    }
}
